<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Disk Home</title>
</head>
<body>
<a href="./ls?path=<?php echo substr($path, 0, strrpos($path, '/'));?>">Back</a>
<br/>
<span>pwd: <?php echo $path?></span>

<table>
<tr>
<th>filename</th>
<th>operation</th>
</tr>

<?php foreach($nodes as $node): ?>
<tr>
<?php if($node['is_dir'] == 1){?>
<td><a href="./ls?path=<?php echo $node['ppath'].'/'.$node['name']; ?>"><?php echo $node['name']; ?></a></td>
<?php }else{ ?>
<td><span><?php echo $node['name']; ?></span></li></td>
<?php }?>
<td><a href="./rm?path=<?php echo $node['ppath'].'/'.$node['name']; ?>"">del</a></td>
</tr>
<?php endforeach;?>

</table>

<div>
<button>New folder</button>
</div>
</body>
</html>